package com.sy.server.service;

import com.sy.server.dto.CostList;
import com.sy.server.dto.CostWithoutDetail;
import com.sy.server.model.Cost;
import com.sy.server.vo.CostWithStr;
import com.sy.server.vo.Day;

import java.util.List;

public interface ICostService {
    List<Cost> getYearTotalPay(Integer year);
    void del(String day);
    boolean verifyDate(String date);
    void add(Cost cost);
    void updateByDate(CostWithStr costWithStr);
    double getTotalPay(Integer year,Integer month);
    List<Cost> queryPayList(Integer year, Integer month);
    List<String> getXDays(Day day);
    Double getXDaysAvg(Day day);
    List<Double> getTotalPayList(Day day);
    CostList queryPayListWithoutDetail(Day day);
    CostWithoutDetail sumEachOther(Integer year, Integer month);
}
